package com.Circle;

/**
 * ClassName: Circle
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/8/28 14:33
 * @Version 17.0.2
 */
public class Circle {
    private int r;
    private double pai;

    public Circle(int r, double pai) {
        this.r = r;
        this.pai = pai;
    }
//    public int getR() {
//        return r;
//    }
    public void setR(int r) {
        this.r = r;
    }

    public double getArea() {
        return Math.PI * Math.pow(r, 2);
    }
//    public double getPai() {
//        return pai;
//    }


}
